//省市联动
function _getCity() {
    var provinceId = $("#province").attr("value");
    $("#city")[0].disabled = "disabled";
    $("#city")[0].options.length = 1;
    $.get("/province/relating/city/index.aspx?r=" + Math.random(), {"provinceId":provinceId}, function(data) {
        $(data).find("city").each(function() {
            $("#city").append("<option value='" + $(this).attr("id") + "'>" + $(this).attr("cityName") + "</option>");
        });
        $("#city")[0].disabled = "";
    });
}

//市县联动
function _getCountry() {
    var cityId = $("#city").attr("value");
    $("#countryId")[0].disabled = "disabled";
    $("#countryId")[0].options.length = 1;
    $.get("/city/relating/country/index.aspx?r=" + Math.random(), {"cityId":cityId}, function(data) {
        $(data).find("country").each(function() {
            $("#countryId").append("<option value='" + $(this).attr("id") + "'>" + $(this).attr("countryName") + "</option>");
        });
        $("#countryId")[0].disabled = "";
    });
}